package com.cheng.example.atguigu.design_pattern.factory.methods;

public class LDOrderPizza extends OrderPizza{
    @Override
    Pizza createPizza(String ordertype) {
        Pizza pizza = null;
        if (ordertype.equals("cheese")){
            pizza = new LDCheesePizza();
        } else if(ordertype.equals("pepper")){
            pizza = new LDPepperPizza();
        }
        return pizza;
    }
}
